#!usr/bin/python
# -*- coding: UTF-8 -*-

mylist = ['宝宝是美女']
assert len(mylist) > 0 #assert断言语句失败
mylist.pop()
assert len(mylist) > 0 #报错 AssertionError

mylist.fis #报错AttributeError

mylist = (1, 2, 3)
print(mylist[3]) #报错IndexError
print(mylist[2]) #正常

my_dict = {'one': 1, 'two': 2, 'three': 3}
print(my_dict['four']) #报错KeyError
print(my_dict.get('four')) #报错NameError
#print 'aldfjsdl' #报错语法错误SyntaxError
#print 1 + 'df' #TypeError







